/**
 * 
 */
package krush.rezepte;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.EditText;
import android.widget.RadioGroup;
import android.widget.TextView;
import android.widget.Toast;


public class Volltextsuche extends Activity {

	 @Override
	    public void onCreate(Bundle savedInstanceState) 
	    {
	        super.onCreate(savedInstanceState);
	        setContentView(R.layout.volltextsuche);
	    }
	 
	 
	 public void sucheclick(View v)
	{
		 RadioGroup verkn = (RadioGroup)findViewById(R.id.verkn_radio_group);
		 EditText et = (EditText)findViewById(R.id.Suche_editText);
		 int rbid = verkn.getCheckedRadioButtonId();
		 View rb = verkn.findViewById(rbid);
		 int idx = verkn.indexOfChild(rb);		 
		 String uebergabe = String.valueOf(idx) + " " + et.getText().toString().trim();		 
		Intent intent = new Intent(this, Suchergebnisse.class);
		intent.putExtra("uebergabe", uebergabe);
		startActivity(intent);
	}
}
